<template>
  <el-dialog title="度量解释" :visible.sync="show" :close-on-click-modal="false" custom-class="nopadding">

    <div class="el-dialog-div">
      <el-table :data="tableData" border style="width: 100%" header-row-class-name="tableHeadbg">
        <el-table-column align="center" prop="kpiName" label="度量"></el-table-column>
        <el-table-column min-width="200" align="center" prop="kpiDesc" label="解释"></el-table-column>
      </el-table>
    </div>
    <div slot="footer" class="dialog-footer">
      <el-button size="small" @click="show = false">关 闭</el-button>
    </div>
  </el-dialog>
</template>

<script>
import request from "@/utils/request"

export default {
  data() {
    return {
      show: false,
      tableData: []
    }
  },
  mounted() {

  },
  computed: {},
  methods: {
    openDailog(cubeId) {
      this.show = true;
      request({
        method:'post',
        url: "/bi/bireport/kpidesc",
        params: {cubeId:cubeId},
      }).then(resp=>{
        this.tableData = resp.rows;
      });
    }
  },
  watch: {}
}
</script>
